package br.com.sig.security.business.model.bo;

import javax.ejb.Stateless;
import javax.inject.Named;

import br.com.sig.BaseException;
import br.com.sig.business.model.BaseService;
import br.com.sig.security.business.model.entity.User;

/**
 * Session Bean implementation class TesteBO
 */
@Named
@Stateless
public class UserBO extends BaseService<User> {

	private static final long serialVersionUID = 816936296433007811L;
	
	public User findByUserName(String userName) throws BaseException {
		return find(new User(userName)).get(0);
	}

}